<%@page import="ex.recruit.vo.ApplyJudgmentListVoEx"%>
<%@page import="com.guinea.core.utils.CommonUtils"%>
<%@ page contentType="text/html;charset=UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
	<head>
		<title>申请状态查询</title>
	</head>
	<body>
		<form action="<c:url value='/site/user/apply.do'/>" method="post">
			<div class="right-opertion">
				<input type="button" value="查看列表" onclick="search(this);" class="button" />
			</div>
			<br />
			<table class="table-layout">
				<tr class="tr-thead">
					<th rowspan="2" style="width:30px;">
						序号
					</th>
					<th rowspan="2">
						流水号
					</th>
					<th rowspan="2">
						提交日期
					</th>
					<th colspan="3">
						申请投资区域
					</th>
					<th rowspan="2">
						公司全称
					</th>
					<th rowspan="2">
						是否
						<br />
						提交
					</th>
					<th rowspan="2">
						申请<br />确认
					</th>
					<th rowspan="2">
						初审
					</th>
					<th rowspan="2">
						走访
					</th>
					<th rowspan="2">
						材料
						<br />
						审核
					</th>
					<th rowspan="2">
						SKN
						<br />
						内审
					</th>
					<th rowspan="2">
						决策委员会
						<br />
						审批
					</th>
					<th rowspan="2">
						操作
					</th>
				</tr>
				<tr class="tr-thead">
					<th>
						省
					</th>
					<th>
						市
					</th>
					<th>
						县/区
					</th>
				</tr>
				<logic:present name="page">
					<logic-el:iterate name="page" property="result" id="applyJudgmentListVoEx" indexId="index">
						<tr class="<c:if test="${index % 2 == 0}">tr-odd</c:if><c:if test="${index % 2 == 1}">tr-even</c:if>">
							<td>
								<c:out value="${index + 1}" />
								&nbsp;
							</td>
							<td>
								<c:out value="${applyJudgmentListVoEx.serial}" />
								&nbsp;
							</td>
							<td>
								<c:out value="${applyJudgmentListVoEx.submitDate}" />
								&nbsp;
							</td>
							<td>
								<logic:iterate id="prov" name="provinces">
									<c:if test="${prov.code == applyJudgmentListVoEx.provinceId}">
										<c:out value="${prov.name}" />
									</c:if>
								</logic:iterate>
								&nbsp;
							</td>
							<td>
								<logic:iterate id="city" name="cities">
									<c:if test="${city.code == applyJudgmentListVoEx.cityId}">
										<c:out value="${city.name}" />
									</c:if>
								</logic:iterate>
								&nbsp;
							</td>
							<td>
								<logic:iterate id="dist" name="districts">
									<c:if test="${dist.code == applyJudgmentListVoEx.districtId}">
										<c:out value="${dist.name}" />
									</c:if>
								</logic:iterate>
								&nbsp;
							</td>
							<td>
								<a href="<c:url value='apply.do?method=view&id=${applyJudgmentListVoEx.applyId}'/>"><c:out value="${applyJudgmentListVoEx.corp}" /></a> &nbsp;
							</td>
							<td>
								<c:if test='${"0" == applyJudgmentListVoEx.isSubmitted}'>草稿</c:if>
								<c:if test='${"1" == applyJudgmentListVoEx.isSubmitted}'>已提交</c:if>
								&nbsp;
							</td>
							<td style="text-align:center;">
								<c:choose>
									<c:when test='${"0" == applyJudgmentListVoEx.confirmState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.confirmDate}" />&nbsp;未通过&#13;<c:out value="${applyJudgmentListVoEx.confirmNotes}" />" src="<c:url value="/images/x.gif" />" />
									</c:when>
									<c:when test='${"1" == applyJudgmentListVoEx.confirmState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.confirmDate}" />&nbsp;已通过&#13;<c:out value="${applyJudgmentListVoEx.confirmNotes}" />" src="<c:url value="/images/d.gif" />" />
									</c:when>
									<c:when test='${"2" == applyJudgmentListVoEx.confirmState}'>--</c:when>
								</c:choose>
								&nbsp;
							</td>
							<td style="text-align:center;">
								<c:choose>
									<c:when test='${"0" == applyJudgmentListVoEx.firstTrialState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.firstTrialDate}" />&nbsp;未通过&#13;<c:out value="${applyJudgmentListVoEx.firstTrialNotes}" />" src="<c:url value="/images/x.gif" />" />
									</c:when>
									<c:when test='${"1" == applyJudgmentListVoEx.firstTrialState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.firstTrialDate}" />&nbsp;已通过&#13;<c:out value="${applyJudgmentListVoEx.firstTrialNotes}" />" src="<c:url value="/images/d.gif" />" />
									</c:when>
									<c:when test='${"2" == applyJudgmentListVoEx.firstTrialState}'>--</c:when>
								</c:choose>
								&nbsp;
							</td>
							<td style="text-align:center;">
								<c:choose>
									<c:when test='${"0" == applyJudgmentListVoEx.visitState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.visitDate}" />&nbsp;未通过&#13;<c:out value="${applyJudgmentListVoEx.visitNotes}" />" src="<c:url value="/images/x.gif" />" />
									</c:when>
									<c:when test='${"1" == applyJudgmentListVoEx.visitState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.visitDate}" />&nbsp;已通过&#13;<c:out value="${applyJudgmentListVoEx.visitNotes}" />" src="<c:url value="/images/d.gif" />" />
									</c:when>
									<c:when test='${"2" == applyJudgmentListVoEx.visitState}'>--</c:when>
								</c:choose>
								&nbsp;
							</td>
							<td style="text-align:center;">
								<c:choose>
									<c:when test='${"0" == applyJudgmentListVoEx.matReviewState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.matReviewDate}" />&nbsp;未通过&#13;<c:out value="${applyJudgmentListVoEx.matReviewNotes}" />" src="<c:url value="/images/x.gif" />" />
									</c:when>
									<c:when test='${"1" == applyJudgmentListVoEx.matReviewState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.matReviewDate}" />&nbsp;已通过&#13;<c:out value="${applyJudgmentListVoEx.matReviewNotes}" />" src="<c:url value="/images/d.gif" />" />
									</c:when>
									<c:when test='${"2" == applyJudgmentListVoEx.matReviewState}'>--</c:when>
								</c:choose>
								&nbsp;
							</td>
							<td style="text-align:center;">
								<c:choose>
									<c:when test='${"0" == applyJudgmentListVoEx.sknAuditState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.sknAuditDate}" />&nbsp;未通过&#13;<c:out value="${applyJudgmentListVoEx.sknAuditNotes}" />" src="<c:url value="/images/x.gif" />" />
									</c:when>
									<c:when test='${"1" == applyJudgmentListVoEx.sknAuditState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.sknAuditDate}" />&nbsp;已通过&#13;<c:out value="${applyJudgmentListVoEx.sknAuditNotes}" />" src="<c:url value="/images/d.gif" />" />
									</c:when>
									<c:when test='${"2" == applyJudgmentListVoEx.sknAuditState}'>--</c:when>
								</c:choose>
								&nbsp;
							</td>
							<td style="text-align:center;">
								<c:choose>
									<c:when test='${"0" == applyJudgmentListVoEx.finalJudgmentState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.finalJudgmentDate}" />&nbsp;未通过&#13;<c:out value="${applyJudgmentListVoEx.finalJudgmentNotes}" />" src="<c:url value="/images/x.gif" />" />
									</c:when>
									<c:when test='${"1" == applyJudgmentListVoEx.finalJudgmentState}'>
										<img title="<c:out value="${applyJudgmentListVoEx.finalJudgmentDate}" />&nbsp;已通过&#13;<c:out value="${applyJudgmentListVoEx.finalJudgmentNotes}" />" src="<c:url value="/images/d.gif" />" />
									</c:when>
									<c:when test='${"2" == applyJudgmentListVoEx.finalJudgmentState}'>--</c:when>
								</c:choose>
								&nbsp;
							</td>

							<td>
								<c:if test='${"1" != applyJudgmentListVoEx.isSubmitted}'>
									<a href="<c:url value='apply.do?method=edit&id=${applyJudgmentListVoEx.applyId}'/>">修改</a>&nbsp;
								</c:if>
								<c:if test='${"1" == applyJudgmentListVoEx.isSubmitted}'>
									<%
									ApplyJudgmentListVoEx a = (ApplyJudgmentListVoEx)pageContext.getAttribute("applyJudgmentListVoEx");
										if(!"2".equals(a.getConfirmState()) && CommonUtils.isInOneDay(a.getConfirmDate())){
											%>
									<a href="<c:url value='apply.do?method=edit&id=${applyJudgmentListVoEx.applyId}'/>" title="您的申请已经过确认，&#13;您有 1 天的时间进行修改，&#13; 1 天之后申请将被锁定">定稿</a>&nbsp;		
											<%
										}
									%>
									<a href="<c:url value='apply.do?method=download&id=${applyJudgmentListVoEx.applyId}'/>">下载</a>
								</c:if>
							</td>
						</tr>
					</logic-el:iterate>
				</logic:present>
			</table>
			<page:page name="page" />
		</form>
	</body>
</html>
